package com.hongyue.dey02;

public class DIGui {
    public static void main(String[] args) {
        int a = diGui(8040);
        System.out.println(a);
    }

    private static int diGui(int i) {
        if (i == 1) {
            return 1;
        }
        return i + diGui(i-1);
    }
}
